<include file="Public:header" />
{:W('Navigation')}
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">用户信息申请审核列表</div>
		<div class="row-table-body">
			<p class="form-title">
				<switch name="status">
					<case value="0">
						<a href="{:U('core/verify/index','status=3')}">全部</a>
						未审核
						<a href="{:U('core/verify/index','status=1')}">已通过审核</a>
						<a href="{:U('core/verify/index','status=2')}">未通过审核</a>
					</case>
					<case value="1">
						<a href="{:U('core/verify/index','status=3')}">全部</a>
						<a href="{:U('core/verify/index')}">未审核</a>
						已通过审核
						<a href="{:U('core/verify/index','status=2')}">未通过审核</a>
					</case>
					<case value="2">
						<a href="{:U('core/verify/index','status=3')}">全部</a>
						<a href="{:U('core/verify/index')}">未审核</a>
						<a href="{:U('core/verify/index','status=1')}">已通过审核</a>
						未通过审核
					</case>
					<case value="3">
						全部
						<a href="{:U('core/verify/index')}">未审核</a>
						<a href="{:U('core/verify/index','status=1')}">已通过审核</a>
						<a href="{:U('core/verify/index','status=2')}">未通过审核</a>
					</case>
				</switch>

			</p>
			<table class="table table-hover table-striped" style="margin-bottom:0px;">
				<tbody>
					<tr>
						
						<th>申请类型</th>
						<th>用户名</th>
						<th>申请时间</th>
						<th>申请人</th>
						<th>审核人</th
						</if>
						<th>操作</th>
					</tr>
					<volist name="messagelist" id="vo" key='k'>
					<tr>
						<td>{$vo.type}</td>
						<td><a class="suser uid_{$vo.content}" id="suser{$k}" href="javascript:;" onclick="getuser('{$vo.content}')">{$vo.content}</a></td>
						<td>{$vo.createtime|date='Y-m-d H:i:s',###}</td>
						<td>{$vo.uid_send}</td>
						<td><if condition="$vo['uid_agree'] neq ''">{$vo.uid_agree}<else />未审</if></td>
						</if>
						<td>
							<switch name="vo.status">
								<case value="0">
									<a class="glyphicon glyphicon-ok-sign" href="{:U('core/verify/agree','vid='.$vo['vid'])}">通过</a> | <a href="javasctip:;" onclick="un('{$vo.vid}')" class="glyphicon glyphicon-remove-sign color-red">审核不通过</a>
								</case>
								<case value="1">
									<span class="text-primary glyphicon glyphicon-ok-sign">已通过</span>
								</case>
								<case value="2">
									<span class="popovers btn btn-sm btn-danger glyphicon glyphicon-remove-sign" title="拒审原因！" data-container="body" data-toggle="popover" role="button" data-trigger="focus"  data-placement="right" data-content="<if condition="$vo['msg_back'] eq ''">未填写拒审原因！<else />{$vo.msg_back}</if>">已拒审</span>
								</case>
							</switch>
						</td>
					</tr>
					</volist>
				</tbody>
				<tfoot>
					<tr>
						<!--<td><input type="submit" value="删除" class="btn btn-primary btn-xs"></td>-->
						<td colspan="6">{$page}<div class="clear"></div></td>
					</tr>
				</tfoot>
			</table>
		</div>
	</div>
</div>
<script type="text/javascript">
	function getuser(uname){	
		$('#alert').modal({
			show:true,
			remote:'{:u("core/verify/view")}'+'&uname='+uname
		});
	}
	
	function un(vid){
		$('#alert').modal({
			show:true,
			remote:'{:U('core/verify/unagree')}'+'&vid='+vid
		});
		
	}
	$(function () {
		$('body').click(function(){
			$(".popovers").popover('destroy');
		});
	  $(".popovers").hover(function(){
	  	$(".popovers").popover('destroy');
	  	$(this).popover('show');
	  });
	})
</script>
<div class="clear"></div>
<include file="Public:alert" />
<include file="Public:footer" />